home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
CIncludes
/
CalendarEngine.xh
< prev
next >
Wrap
Text File
|
1996-05-01
|
16KB
|
533 lines
/*
* This file was generated by the SOM Compiler.
* FileName: CalendarEngine.xh.
* Generated using:
* SOM Precompiler somipc: 2.18
* SOM Emitter emitxh.dll: 2.33
*/
#ifndef SOM_TCalendarEngine_xh
#define SOM_TCalendarEngine_xh
class TCalendarEngine;
#define TCalendarEngine_MajorVersion 1
#define TCalendarEngine_MinorVersion 1
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_SOMObject_xh
#include <somobj.xh>
#endif
#ifndef TCalendarEngine_API
#define TCalendarEngine_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
class SOMClass;
class SOMObject;
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define TCalendarEngineCClassData TCalendarEngineClassData
#define TCalendarEngineNewClass(major,minor) somNewVersionedClassReference(TCalendarEngine,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define TCalendarEngineMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the TCalendarEngine class object, and the methods it introduces. */
SOMEXTERN struct TCalendarEngineClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken _get_fCalendarObjectRef;
somMToken _set_fCalendarObjectRef;
somMToken _get_fCalendarID;
somMToken _set_fCalendarID;
somMToken _get_fDivisionCount;
somMToken _set_fDivisionCount;
somMToken SetCalendarObjectRef;
somMToken GetCalendarIdentifier;
somMToken GetCalendarDivisionCount;
somMToken GetCalendarFieldCount;
somMToken GetCalendarDivisionName;
somMToken GetCalendarFieldName;
somMToken ConvertCalendarDateToTimeObject;
somMToken ConvertTimeObjectToCalendarDate;
somMToken AddCalendarDateToTimeObject;
somMToken SubtractCalendarDateFromTimeObject;
} SOMDLINK TCalendarEngineClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(TCalendarEngine_Class_Source) && !defined(SOM_Module_calendarengine_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list TCalendarEngineClassData
#endif
#endif
/*
* -- Typedefs for TCalendarEngine Method Procedures
*/
SOMEXTERN {
typedef LocaleObjectRef (* SOMLINK somTD_TCalendarEngine__get_fCalendarObjectRef)(TCalendarEngine *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_TCalendarEngine__set_fCalendarObjectRef)(TCalendarEngine *somSelf, Environment *ev,
LocaleObjectRef fCalendarObjectRef);
typedef UInt32 (* SOMLINK somTD_TCalendarEngine__get_fCalendarID)(TCalendarEngine *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_TCalendarEngine__set_fCalendarID)(TCalendarEngine *somSelf, Environment *ev,
UInt32 fCalendarID);
typedef UInt32 (* SOMLINK somTD_TCalendarEngine__get_fDivisionCount)(TCalendarEngine *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_TCalendarEngine__set_fDivisionCount)(TCalendarEngine *somSelf, Environment *ev,
UInt32 fDivisionCount);
typedef void (* SOMLINK somTD_TCalendarEngine_SetCalendarObjectRef)(TCalendarEngine *somSelf, Environment *ev,
LocaleObjectRef localeObjectRef);
typedef OSStatus (* SOMLINK somTD_TCalendarEngine_GetCalendarIdentifier)(TCalendarEngine *somSelf, Environment *ev,
UInt32* id);
typedef OSStatus (* SOMLINK somTD_TCalendarEngine_GetCalendarDivisionCount)(TCalendarEngine *somSelf, Environment *ev,
UInt32* count);
typedef OSStatus (* SOMLINK somTD_TCalendarEngine_GetCalendarFieldCount)(TCalendarEngine *somSelf, Environment *ev,
UInt32 theDivision,
UInt32* count);
typedef OSStatus (* SOMLINK somTD_TCalendarEngine_GetCalendarDivisionName)(TCalendarEngine *somSelf, Environment *ev,
UInt32 theDivsion,
TextObject name);
typedef OSStatus (* SOMLINK somTD_TCalendarEngine_GetCalendarFieldName)(TCalendarEngine *somSelf, Environment *ev,
UInt32 division,
UInt32 field,
TextObject name);
typedef OSStatus (* SOMLINK somTD_TCalendarEngine_ConvertCalendarDateToTimeObject)(TCalendarEngine *somSelf, Environment *ev,
TCalendarDate** calendarDate,
TimeObject* result);
typedef OSStatus (* SOMLINK somTD_TCalendarEngine_ConvertTimeObjectToCalendarDate)(TCalendarEngine *somSelf, Environment *ev,
ConstTimeObjectPtr timeObj,
TCalendarDate** result);
typedef OSStatus (* SOMLINK somTD_TCalendarEngine_AddCalendarDateToTimeObject)(TCalendarEngine *somSelf, Environment *ev,
ConstTimeObjectPtr source,
TCalendarDate** delta,
TimeObjectPtr result);
typedef OSStatus (* SOMLINK somTD_TCalendarEngine_SubtractCalendarDateFromTimeObject)(TCalendarEngine *somSelf, Environment *ev,
ConstTimeObjectPtr source,
TCalendarDate** delta,
TimeObjectPtr result);
/*
* -- Typedefs for Inherited Methods
*/
typedef void (* SOMLINK somTD_TCalendarEngine_somInit)(TCalendarEngine *somSelf);
typedef void (* SOMLINK somTD_TCalendarEngine_somUninit)(TCalendarEngine *somSelf);
typedef SOMObject* (* SOMLINK somTD_TCalendarEngine_somDuplicateReference)(TCalendarEngine *somSelf);
typedef boolean (* SOMLINK somTD_TCalendarEngine_somCompareReference)(TCalendarEngine *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_TCalendarEngine_somRelease)(TCalendarEngine *somSelf);
typedef void (* SOMLINK somTD_TCalendarEngine_somFree)(TCalendarEngine *somSelf);
typedef boolean (* SOMLINK somTD_TCalendarEngine_somCanDelete)(TCalendarEngine *somSelf);
typedef SOMClass* (* SOMLINK somTD_TCalendarEngine_somGetClass)(TCalendarEngine *somSelf);
typedef corbastring (* SOMLINK somTD_TCalendarEngine_somGetClassName)(TCalendarEngine *somSelf);
typedef long (* SOMLINK somTD_TCalendarEngine_somGetSize)(TCalendarEngine *somSelf);
typedef boolean (* SOMLINK somTD_TCalendarEngine_somIsA)(TCalendarEngine *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_TCalendarEngine_somRespondsTo)(TCalendarEngine *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_TCalendarEngine_somIsInstanceOf)(TCalendarEngine *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_TCalendarEngine_somDispatch)(TCalendarEngine *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_TCalendarEngine_somClassDispatch)(TCalendarEngine *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_TCalendarEngine_somCastObj)(TCalendarEngine *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_TCalendarEngine_somResetObj)(TCalendarEngine *somSelf);
typedef SOMObject* (* SOMLINK somTD_TCalendarEngine_somPrintSelf)(TCalendarEngine *somSelf);
typedef void (* SOMLINK somTD_TCalendarEngine_somDumpSelf)(TCalendarEngine *somSelf,
long level);
typedef void (* SOMLINK somTD_TCalendarEngine_somDumpSelfInt)(TCalendarEngine *somSelf,
long level);
}
#endif /* TCalendarEngine_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for TCalendarEngine
*/
class TCalendarEngine : public SOMObject
{
public:
// TCalendarEngine::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for TCalendarEngine, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(TCalendarEngine);
}
// TCalendarEngine::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: _get_fCalendarObjectRef */
LocaleObjectRef _get_fCalendarObjectRef(Environment *ev)
{
return SOM_ResolveD(this,TCalendarEngine,TCalendarEngine,_get_fCalendarObjectRef)
(this,ev);
}
/* method: _set_fCalendarObjectRef */
void _set_fCalendarObjectRef(Environment *ev,
LocaleObjectRef fCalendarObjectRef)
{
SOM_ResolveD(this,TCalendarEngine,TCalendarEngine,_set_fCalendarObjectRef)
(this,ev,fCalendarObjectRef);
}
/* method: _get_fCalendarID */
UInt32 _get_fCalendarID(Environment *ev)
{
return SOM_ResolveD(this,TCalendarEngine,TCalendarEngine,_get_fCalendarID)
(this,ev);
}
/* method: _set_fCalendarID */
void _set_fCalendarID(Environment *ev,
UInt32 fCalendarID)
{
SOM_ResolveD(this,TCalendarEngine,TCalendarEngine,_set_fCalendarID)
(this,ev,fCalendarID);
}
/* method: _get_fDivisionCount */
UInt32 _get_fDivisionCount(Environment *ev)
{
return SOM_ResolveD(this,TCalendarEngine,TCalendarEngine,_get_fDivisionCount)
(this,ev);
}
/* method: _set_fDivisionCount */
void _set_fDivisionCount(Environment *ev,
UInt32 fDivisionCount)
{
SOM_ResolveD(this,TCalendarEngine,TCalendarEngine,_set_fDivisionCount)
(this,ev,fDivisionCount);
}
/* method: SetCalendarObjectRef */
void SetCalendarObjectRef(Environment *ev,
LocaleObjectRef localeObjectRef)
{
SOM_ResolveD(this,TCalendarEngine,TCalendarEngine,SetCalendarObjectRef)
(this,ev,localeObjectRef);
}
/* method: GetCalendarIdentifier */
OSStatus GetCalendarIdentifier(Environment *ev,
UInt32* id)
{
return SOM_ResolveD(this,TCalendarEngine,TCalendarEngine,GetCalendarIdentifier)
(this,ev,id);
}
/* method: GetCalendarDivisionCount */
OSStatus GetCalendarDivisionCount(Environment *ev,
UInt32* count)
{
return SOM_ResolveD(this,TCalendarEngine,TCalendarEngine,GetCalendarDivisionCount)
(this,ev,count);
}
/* method: GetCalendarFieldCount */
OSStatus GetCalendarFieldCount(Environment *ev,
UInt32 theDivision,
UInt32* count)
{
return SOM_ResolveD(this,TCalendarEngine,TCalendarEngine,GetCalendarFieldCount)
(this,ev,theDivision,count);
}
/* method: GetCalendarDivisionName */
OSStatus GetCalendarDivisionName(Environment *ev,
UInt32 theDivsion,
TextObject name)
{
return SOM_ResolveD(this,TCalendarEngine,TCalendarEngine,GetCalendarDivisionName)
(this,ev,theDivsion,name);
}
/* method: GetCalendarFieldName */
OSStatus GetCalendarFieldName(Environment *ev,
UInt32 division,
UInt32 field,
TextObject name)
{
return SOM_ResolveD(this,TCalendarEngine,TCalendarEngine,GetCalendarFieldName)
(this,ev,division,field,name);
}
/* method: ConvertCalendarDateToTimeObject */
OSStatus ConvertCalendarDateToTimeObject(Environment *ev,
TCalendarDate** calendarDate,
TimeObject* result)
{
return SOM_ResolveD(this,TCalendarEngine,TCalendarEngine,ConvertCalendarDateToTimeObject)
(this,ev,calendarDate,result);
}
/* method: ConvertTimeObjectToCalendarDate */
OSStatus ConvertTimeObjectToCalendarDate(Environment *ev,
ConstTimeObjectPtr timeObj,
TCalendarDate** result)
{
return SOM_ResolveD(this,TCalendarEngine,TCalendarEngine,ConvertTimeObjectToCalendarDate)
(this,ev,timeObj,result);
}
/* method: AddCalendarDateToTimeObject */
OSStatus AddCalendarDateToTimeObject(Environment *ev,
ConstTimeObjectPtr source,
TCalendarDate** delta,
TimeObjectPtr result)
{
return SOM_ResolveD(this,TCalendarEngine,TCalendarEngine,AddCalendarDateToTimeObject)
(this,ev,source,delta,result);
}
/* method: SubtractCalendarDateFromTimeObject */
OSStatus SubtractCalendarDateFromTimeObject(Environment *ev,
ConstTimeObjectPtr source,
TCalendarDate** delta,
TimeObjectPtr result)
{
return SOM_ResolveD(this,TCalendarEngine,TCalendarEngine,SubtractCalendarDateFromTimeObject)
(this,ev,source,delta,result);
}
/*
* -- Inherited methods
*/
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,TCalendarEngine,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,TCalendarEngine,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,TCalendarEngine,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,TCalendarEngine,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,TCalendarEngine,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,TCalendarEngine,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,TCalendarEngine,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,TCalendarEngine,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,TCalendarEngine,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,TCalendarEngine,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,TCalendarEngine,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,TCalendarEngine,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,TCalendarEngine,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean TCalendarEngine_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,TCalendarEngine,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,TCalendarEngine,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean TCalendarEngine_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,TCalendarEngine,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,TCalendarEngine,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,TCalendarEngine,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,TCalendarEngine,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,TCalendarEngine,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,TCalendarEngine,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,TCalendarEngine,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* TCalendarEngine */
#endif /* SOM_TCalendarEngine_xh */